package cn.edu.xmu.oomall.customer.model.vo;

import cn.edu.xmu.oomall.core.model.VoObject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 * @author Jiazhe Yuan
 * @date 2021-12-14 12:24:56
 */
public class CartRetVo implements VoObject {
    private Long id;
    private SimpleProductRetVo product;
    private Long quantity;
    private Long price;
    private List<SimpleCouponActivityRetVo> couponActivity;

    @Override
    public Object createVo() {
        return new CartRetVo(id,product,quantity,price,couponActivity);
    }

    @Override
    public Object createSimpleVo() {
        return new CartRetVo(id,product,quantity,price,couponActivity);
    }
}
